function showAddProductForm() {
    document.getElementById('add-product-form').style.display = 'block';
}

// 示例填充数据
document.addEventListener('DOMContentLoaded', () => {
    const productList = document.getElementById('product-list');
    fetch('/product/get-user-products')
        .then(response => response.json())
        .then(products => {
            products.forEach(prod => {
                const li = document.createElement('li');
                li.textContent = `${prod.name} - ￥${prod.price}`;
                productList.appendChild(li);
            });
        });
});